class Advert < ActiveRecord::Base
  
  def self.advert
    #Try to find the only one
    advert = Advert.find(:first)
    if !advert
      advert = Advert.new
      advert.save
    end
    advert
  end
  
end
